package com.taotao.sys.entity;

import com.alibaba.fastjson.JSON;
import lombok.Data;

import io.swagger.annotations.ApiModelProperty;
import com.gitee.fastmybatis.annotation.Column;

import com.gitee.fastmybatis.annotation.Pk;
import com.gitee.fastmybatis.annotation.PkStrategy;
import com.gitee.fastmybatis.annotation.Table;
import com.gitee.fastmybatis.annotation.LogicDeleteStrategy;


import java.time.LocalDateTime;

import java.io.Serializable;

/**
* 角色功能关联表
* @author Fan Beibei
* @date   2025-05-18 23:03:08
*/
@Data
@Table(name = "sys_role_func",pk = @Pk(name = "id", strategy = PkStrategy.NONE))
public class SysRoleFunc implements Serializable {


	@ApiModelProperty(value="主键")
	private Long id;

	@ApiModelProperty(value="角色ID")
	private Long roleId;

	@ApiModelProperty(value="功能ID")
	private Long funcId;

	@ApiModelProperty(value="是否删除:0-否，非0-是")
	@Column(logicDelete = true,  notDeleteValue = "0",logicDeleteStrategy = LogicDeleteStrategy.ID_FILL)
	private Long deleted;

	@ApiModelProperty(value="创建人ID")
	private Long createId;

	@ApiModelProperty(value="创建时间")
	private LocalDateTime createTime;

	@ApiModelProperty(value="更新人ID")
	private Long updateId;

	@ApiModelProperty(value="更新时间")
	private LocalDateTime updateTime;


	// 列名常量
	public static final String ID = "id";
	public static final String ROLE_ID = "role_id";
	public static final String FUNC_ID = "func_id";
	public static final String DELETED = "deleted";
	public static final String CREATE_ID = "create_id";
	public static final String CREATE_TIME = "create_time";
	public static final String UPDATE_ID = "update_id";
	public static final String UPDATE_TIME = "update_time";


	@Override
	public String toString() {
		return JSON.toJSONString(this);
	}

}